from data.models import Client
from tests.unit.data.factories import ClientFactory


def test_create_client(db):
    _client = ClientFactory()
    db.session.commit()

    assert _client.id is not None
    assert len(db.session.query(Client).all()) == 1
